Optimal. Leaf size=268 \[ \frac {(A b-a B) (a+b x)^{m+1} (c+d x)^n (e+f x)^{-m-n} \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} F_1\left (m+1;-n,m+n;m+2;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+1)}+\frac {B (a+b x)^{m+2} (c+d x)^n (e+f x)^{-m-n} \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} F_1\left (m+2;-n,m+n;m+3;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.21, antiderivative size = 268, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {159, 140, 139, 138} \[ \frac {(A b-a B) (a+b x)^{m+1} (c+d x)^n (e+f x)^{-m-n} \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} F_1\left (m+1;-n,m+n;m+2;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+1)}+\frac {B (a+b x)^{m+2} (c+d x)^n (e+f x)^{-m-n} \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} F_1\left (m+2;-n,m+n;m+3;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 138
Rule 139
Rule 140
Rule 159
Rubi steps
\begin {align*} \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-m-n} \, dx &=\frac {B \int (a+b x)^{1+m} (c+d x)^n (e+f x)^{-m-n} \, dx}{b}+\frac {(A b-a B) \int (a+b x)^m (c+d x)^n (e+f x)^{-m-n} \, dx}{b}\\ &=\frac {\left (B (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n}\right ) \int (a+b x)^{1+m} \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n (e+f x)^{-m-n} \, dx}{b}+\frac {\left ((A b-a B) (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n}\right ) \int (a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n (e+f x)^{-m-n} \, dx}{b}\\ &=\frac {\left (B (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^{-m-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n}\right ) \int (a+b x)^{1+m} \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n \left (\frac {b e}{b e-a f}+\frac {b f x}{b e-a f}\right )^{-m-n} \, dx}{b}+\frac {\left ((A b-a B) (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^{-m-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n}\right ) \int (a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n \left (\frac {b e}{b e-a f}+\frac {b f x}{b e-a f}\right )^{-m-n} \, dx}{b}\\ &=\frac {(A b-a B) (a+b x)^{1+m} (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^{-m-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} F_1\left (1+m;-n,m+n;2+m;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (1+m)}+\frac {B (a+b x)^{2+m} (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^{-m-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} F_1\left (2+m;-n,m+n;3+m;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (2+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.65, size = 0, normalized size = 0.00 \[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-m-n} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.19, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.25, size = 0, normalized size = 0.00 \[ \int \left (B x +A \right ) \left (b x +a \right )^{m} \left (d x +c \right )^{n} \left (f x +e \right )^{-m -n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\left (A+B\,x\right )\,{\left (a+b\,x\right )}^m\,{\left (c+d\,x\right )}^n}{{\left (e+f\,x\right )}^{m+n}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________